"use strict";
//该模块专门用来处理按照行读取的方式（针对文本文件）
const readline= require('readline');
const fs =require('fs');
const path = require('path');
//创建一个要读取的接口
const rl = readline.createInterface({
    input: fs.createReadStream(path.join(__dirname, 'abc.txt')),//创建一个可读流
    // output: process.stdout
});
rl.on('line', (line) => {
    console.log(line)
});